<script src="lib/vue-2.4.0.js" type="text/javascript" charset="utf-8"></script>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>

<div id="app">
  <input type="button" name="" id="" value="浪起来" @click="lang" />
  <input type="button" name="" id="" value="低调" @click="stop" />
  <p>{{mgs}}</p>
</div>

<script type="text/javascript">
  var ve = new Vue({
    el: '#app',
    data: {
      mgs: "别浪~~，猥琐发育！",
      timer: null,
    },
    methods: {
      lang() {
        if (this.timer != null) return;
        this.timer = setInterval(() => {
          var start = this.mgs.substring(0, 1);
          var end = this.mgs.substring(1);
          this.mgs = end + start;
        }, 300)

      },
      stop() {
        clearInterval(this.timer);
        this.timer = null;
      }
    }
  })
</script>